package com.moyu.data.dao;

import com.moyu.data.domain.SysPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.moyu.data.domain.SysRole;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author makun
 * @since 2019-02-22
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

  List<SysPermission> findPermissionByRoles(List<SysRole> roles);

  List<Long> findPermissionIdByRoleId(@Param("roleId") Long roleId);
}
